<template>
  <a-form :form="form" layout="vertical" class="rx-a-form-vertical">
      <a-form-item   :label="i18n('form.showField','显示文本字段')">
          <a-select v-decorator="['showField']" :options="instFields"></a-select>
      </a-form-item>

  </a-form>
</template>

<script>
  export default {
    name: "renderConfig_sysinst",
    props:["layerid","destroy"],
    data(){
      return {
        labelCol: { span:6 },
        wrapperCol: { span:18 },
        labelCol1: { span:3 },
        wrapperCol1: { span:19 },
        form: this.$form.createForm(this),
        mdl:{},
        instFields:[
            {value:'nameEn',label:this.i18n('form.nameEn','公司英文名')},{value:'nameCn',label:this.i18n('form.nameCn','公司中文名')},
            {value:'instNo',label:this.i18n('form.tenantCode','租户编码')},{value:'busLiceNo',label:this.i18n('form.busLiceNo','营业执照编码')},{value:'domain',label:this.i18n('form.domainName','公司域名')}
        ]
      }
    },
    methods:{
        i18n(name,text,key){
            return this.$ti18(name,text,"formCellRender",key);
        },
      setData(data,fieldDts){
        this.mdl=data;
        this.form.setFieldsValue(this.mdl);
      },
      validate(callback){
        var self=this;
        this.form.validateFields((err, values) => {
          if(err){
            return;
          }
          self.mdl=values;
          callback();
        });
      },
      getData(){
        return this.mdl;
      },
      changeData(e,field){
        this.mdl[field]=e.target.checked;
      }
    }
  }
</script>

<style scoped>

</style>